﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using DLM.Infrastructure.Domain;

namespace DLM.Domain.Model
{
    public class UserPartyAssociation : IValidatableObject, IAggregateRoot
    {
        public int UPAID { get; set; }
        public int UserID { get; set; }
        public int PartyID { get; set; }
        public int IsLead { get; set; }
        public DateTime AssociationDate { get; set; }

        public virtual Party Party { get; set; }
        public virtual User User { get; set; }

        public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
        {
            return null;
        }
    }
}
